<template>
  <title-bar />
  <!-- <img :src="url" /> -->
  <router-view v-slot="{ Component }">
    <component :is="Component" />
  </router-view>
</template>

<script setup lang="ts">
import TitleBar from "@renderer/components/title-bar/title-bar.vue";
import { onMounted, ref } from "vue";
const { ipcRenderer } = window;
import { getKaptchaImage, demo } from "@renderer/api/login";
let url = ref("");
onMounted(async () => {
  await demo();
  // let res: any = await getKaptchaImage({ saltStr: 171204418078787774, l: 6 });
  // url.value = URL.createObjectURL(res.data);
});
// onMounted(() => {
//   window.addEventListener("mousemove", (event) => {
//     let flag = event.target === document.documentElement;
//     if (flag) {
//       ipcRenderer.send("set-ignore-mouse-events", {
//         ignore: true,
//         options: {
//           forward: true,
//         },
//       });
//     } else {
//       ipcRenderer.send("set-ignore-mouse-events", {
//         ignore: false,
//       });
//     }
//   });
//   ipcRenderer.send("set-ignore-mouse-events", {
//     ignore: true,
//     options: {
//       forward: true,
//     },
//   });
// });
</script>

<style></style>
